package com.qq.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qq.mall.beans.ProductParams;
import com.qq.mall.mapper.ProductParamsMapper;
import com.qq.mall.service.ProductParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class ProductParamsServiceImpl extends ServiceImpl<ProductParamsMapper, ProductParams> implements ProductParamsService {
    @Resource
    private ProductParamsMapper productParamsMapper;
    @Override
    public ProductParams getById(String s) {
        QueryWrapper<ProductParams> productParamsQueryWrapper = new QueryWrapper<>();
        productParamsQueryWrapper.eq("product_id",s);
        ProductParams productParams = productParamsMapper.selectOne(productParamsQueryWrapper);
        return productParams;
    }
}
